package com.lou.springboot.dao;

import com.lou.springboot.entity.AdminUser1;
import com.lou.springboot.entity.BlogCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Guaguaerhao on 2020/7/9 22:34
 */
@Mapper
public interface BlogCategoryDao {
    List<BlogCategory> findCategoryList(Map map);
    int getTotalCategories();
    BlogCategory selectByPrimaryKey(Integer categoryId);
    boolean deleteByPrimaryKey(Integer categoryId);
    int insertBlogCategory(BlogCategory blogCategory);
    BlogCategory selectByCategoryName(@Param("categoryName") String categoryName);
    int deleteBatch(Integer[] ids);
    int updateCategory(BlogCategory blogCategory);
    // 获取多个categories
    List<BlogCategory> selectByCategoryIds(@Param("categoryIds") List<Integer> categoryIds);
}
